{% if is_paginated %}
  {% if page_obj.has_previous %}
  <a href="?page={{ page_obj.previous_page_number }}">上一页</a>
  {% endif %}
  第{{ page_obj.number }}页
  {% if page_obj.has_next %}
  <a href="?page={{ page_obj.next_page_number }}">下一页</a>
  {% endif %}
{% endif %}
